package com.zhenghaijin.favoritesservice.service;

import com.zhenghaijin.favoritesservice.model.Favorite;

import java.util.List;

public interface FavoriteService {
    List<Favorite> getFavoritesByUserId(Long userId);
    boolean isFavorite(Long userId, Long animeId);
    // 修改返回值类型为boolean以反映操作结果
    boolean addFavorite(Favorite favorite);
    // 修改返回值类型为boolean以反映操作结果
    boolean removeFavorite(Long userId, Long animeId);
}
